<?php

namespace App\Console\Commands\Tasks\Data;
use Illuminate\Console\Command;

class YesterdayDataSugarStatistics extends Command
{
    //命令名
    protected $signature = 'task:yesterday-data-sugar-statistics';

    //命令描述
    protected $description = '昨日糖果数据统计';

    // 业务处理
    public function handle()
    {
        $today = date('Y-m-d', strtotime("-1 day"));
        app('repo_game_sugar_statistics')->dayDataStatistics($today);
    }

}
